// const pages = import.meta.glob('../pages/**/*.vue');

const routes = [
  {
    path: '/',
    redirect: '/Manage/PersonalSpace',
  },
  {
    path: '/BiographicalNotes',
    meta: {
      label: '制作简历',
      icon: '',
    },
    name: 'BiographicalNotes',
    component: () => import('pages/BiographicalNotes/BiographicalNotes.vue'),
  },
  {
    path: '/Manage',
    name: 'Manage',
    component: () => import('layouts/MainLayout.vue'),
    redirect: '/Manage/PersonalSpace',
    children: [
      {
        path: 'PersonalSpace',
        meta: {
          label: '我的',
          icon: '',
        },
        name: 'PersonalSpace',
        component: () => import('pages/Manage/PersonalSpace/PersonalSpace.vue'),
      },
    ],
  },
  {
    path: '/:catchAll(.*)*',
    component: () => import('pages/ErrorNotFound.vue'),
  },
  // Always leave this as last one,
  // but you can also remove it
];

export default routes;
